#include "graphicsview.h"

GraphicsView::GraphicsView(QWidget *parent)
{

}

GraphicsView::~GraphicsView()
{

}

void GraphicsView::mousePressEvent(QMouseEvent *e)
{
    x1 = e->pos().x();
    y1 = e->pos().y();
}

void GraphicsView::mouseMoveEvent(QMouseEvent *e)
{
    x2 = e->pos().x();
    y2 = e->pos().y();
}

void GraphicsView::mouseReleaseEvent(QMouseEvent *e)
{
//要使rubber尺寸归零，并传送选择完成指令
}
